<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Testing page</title>
  <script src="https://cdn.plot.ly/plotly-latest.min.js"></script>
  <script src="./ccxt.mini.js"></script>
  <script src="./ta-math.iife.js"></script>
</head>
<body>

<!-- Plotly chart will be drawn inside this div -->
<div id="plotly-div" style="width: 800px; height: 500px;"></div>

<script>
// var fetchFromExchange = new ccxt.binance().fetchOHLCV ('BTC/USDT', '1d', Date.now() - 1000*60*60*24*30*5);

// fetchFromExchange.then( function(ohlcv) {
//   render(new TA(ohlcv));
// }).catch( function(err) {
//   Plotly.d3.csv("./data.csv", function (err, rows) {
//     window.alert("CORS/Binance server not answer. CSV data will be used")
//     function unpack(rows, columns) {
//       return rows.map(function (row) {
//         return columns.reduce(function(result, column) {
//           result.push(parseFloat(row[column]));
//           return result;
//         }, []);
//       });
//     };
//     var ohlcv = unpack(rows, ['time', 'open', 'high', 'low', 'close', 'volume']);
//     render(new TA(ohlcv));
//   });
// });
const test ={
  "ohlcv": [
    [1521244800000, 8260, 8348.62, 7721.99, 7824.8, 33110.206329],
    [1521331200000, 7824.01, 8317.4, 7322, 8189.99, 59488.231711],
    [1521417600000, 8189, 8705.23, 8088.4, 8600, 55297.084942],
    [1521504000000, 8595.01, 9050, 8280, 8909.98, 44865.105835],
    [1521590400000, 8909.96, 9177.01, 8750.6, 8885, 39972.405371],
    [1521676800000, 8884.82, 9100, 8465.1, 8722.9, 40617.556809],
    [1521763200000, 8720, 8909, 8269, 8898.03, 39991.007666],
    [1521849600000, 8898.04, 8999.95, 8491, 8546.86, 35466.609572],
    [1521936000000, 8531.25, 8669.85, 8365.77, 8470.15, 29001.769316],
    [1522022400000, 8470.14, 8514.89, 7831, 8134.23, 44033.59566],
    [1522108800000, 8134.22, 8215.94, 7730, 7795.51, 37427.64805],
    [1522195200000, 7795.51, 8109, 7728, 7949.3, 26401.33167],
    [1522281600000, 7949.3, 7975, 6941.11, 7090.14, 54620.915125],
    [1522368000000, 7090.16, 7292.43, 6600.1, 6840.23, 65306.031976],
    [1522454400000, 6840.24, 7223.36, 6777, 6923.91, 36868.539087],
    [1522540800000, 6922, 7049.98, 6430, 6813.01, 44071.430463],
    [1522627200000, 6813.01, 7125, 6765, 7056, 32123.560072],
    [1522713600000, 7063.97, 7520, 7011.01, 7405.21, 37787.331811],
    [1522800000000, 7405.21, 7427.52, 6707, 6796.1, 42227.183804],
    [1522886400000, 6796.1, 6902, 6566.69, 6770.76, 39029.73146],
    [1522972800000, 6770, 6850, 6500, 6601.39, 27455.01192],
    [1523059200000, 6601.39, 7070, 6586.28, 6895.8, 32269.578267],
    [1523145600000, 6895.81, 7109.13, 6880, 7018, 21427.673165],
    [1523232000000, 7011.04, 7185, 6611, 6782.72, 34078.297206],
    [1523318400000, 6781.55, 6890, 6656, 6843.9, 22326.728095],
    [1523404800000, 6839.56, 6990, 6787, 6953.79, 23997.871177],
    [1523491200000, 6953.78, 8012.23, 6743.2, 7923, 64861.595987],
    [1523577600000, 7922.99, 8233.39, 7732, 7877.41, 55044.523148],
    [1523664000000, 7877.48, 8186, 7810, 7999.01, 31621.286357],
    [1523750400000, 8004, 8429.54, 7999.02, 8355, 27946.720444],
    [1523836800000, 8355.07, 8419, 7867, 8064.92, 36664.069715],
    [1523923200000, 8064.92, 8173.7, 7825.4, 7885.02, 32152.603567],
    [1524009600000, 7890.96, 8236.43, 7868, 8173, 26969.04457],
    [1524096000000, 8173.99, 8296, 8080, 8278, 27113.847464],
    [1524182400000, 8273.84, 8930, 8177.09, 8856.98, 39795.337485],
    [1524268800000, 8852.12, 9035, 8565, 8915.31, 40872.229909],
    [1524355200000, 8915.31, 9020.67, 8727.68, 8787.02, 29458.25348],
    [1524441600000, 8785.7, 8985, 8745, 8934.01, 25838.114709],
    [1524528000000, 8934, 9731.01, 8922, 9619.99, 46268.790106],
    [1524614400000, 9618.96, 9759.82, 8730, 8869.99, 81110.037589],
    [1524700800000, 8869.99, 9307.48, 8651.62, 9266, 43300.304245],
    [1524787200000, 9267.03, 9395, 8889, 8915.35, 37241.347036],
    [1524873600000, 8915.35, 9427.48, 8870, 9348, 34759.62842],
    [1524960000000, 9348, 9570.51, 9163.74, 9419, 38149.850035],
    [1525046400000, 9417.04, 9458.64, 9124.99, 9246.01, 35002.033875],
    [1525132800000, 9246.01, 9248.99, 8800.49, 9071.48, 41018.463633],
    [1525219200000, 9071.48, 9268, 8970.2, 9247.84, 26123.543961],
    [1525305600000, 9247.81, 9844, 9168.4, 9750, 38768.388288],
    [1525392000000, 9750, 9830.04, 9520.85, 9713.99, 28681.588879],
    [1525478400000, 9714, 10020, 9682, 9864, 24990.018345],
    [1525564800000, 9863.99, 9970, 9417.03, 9659.01, 27690.351559],
    [1525651200000, 9661.02, 9689.67, 9181, 9365, 33787.640012],
    [1525737600000, 9365, 9475.7, 9060.54, 9187.56, 25533.831889],
    [1525824000000, 9178, 9390, 8965, 9310, 25673.524899],
    [1525910400000, 9310, 9395.12, 8970, 9002.2, 25055.063718],
    [1525996800000, 9002.21, 9016.8, 8341, 8400, 48227.048061],
    [1526083200000, 8405.94, 8646.88, 8153, 8465.94, 40241.32081],
    [1526169600000, 8475.44, 8763.36, 8298, 8679.71, 25632.869362],
    [1526256000000, 8679.71, 8879.99, 8277, 8663.34, 37389.666533],
    [1526342400000, 8663.37, 8859.99, 8401.3, 8462, 28126.956136],
    [1526428800000, 8462, 8488, 8083.01, 8330, 31130.718908],
    [1526515200000, 8330, 8464, 7979, 8041.46, 25439.844799],
    [1526601600000, 8038.82, 8273.21, 7911.9, 8239.81, 23476.158251],
    [1526688000000, 8238.01, 8390.8, 8095.73, 8233.49, 17193.424276],
    [1526774400000, 8233.49, 8609, 8163.9, 8526.98, 19957.057109],
    [1526860800000, 8526.97, 8595.31, 8305, 8381.24, 21516.596486],
    [1526947200000, 8386.89, 8400.18, 7935.11, 7977.11, 23710.902858],
    [1527033600000, 7977.12, 8031.9, 7425, 7501.95, 42910.666774],
    [1527120000000, 7501.95, 7730.73, 7266.99, 7575.01, 37845.446595],
    [1527206400000, 7578.99, 7649.55, 7308.15, 7457, 26739.95664],
    [1527292800000, 7456.99, 7620, 7300, 7333.96, 19464.086071],
    [1527379200000, 7334, 7400, 7231.11, 7338.99, 18706.945515],
    [1527465600000, 7338.99, 7437, 7058.02, 7099, 27219.438963],
    [1527552000000, 7099, 7540, 7032.95, 7461.29, 39407.21183],
    [1527638400000, 7467.98, 7569, 7260.5, 7375.96, 32041.583623],
    [1527724800000, 7382.07, 7699, 7327.51, 7485.01, 30776.063102],
    [1527811200000, 7485.01, 7608.55, 7355.54, 7521.01, 28259.124078],
    [1527897600000, 7521.01, 7697.33, 7437, 7640.03, 26720.690219],
    [1527984000000, 7636.81, 7786.69, 7600, 7714.26, 27505.158951],
    [1528070400000, 7714.26, 7760.52, 7446.5, 7487, 32258.835115],
    [1528156800000, 7487, 7679.49, 7358, 7625, 31722.973384],
    [1528243200000, 7626.64, 7699, 7467.05, 7658.84, 27229.991898],
    [1528329600000, 7658.79, 7765, 7620, 7691.08, 25062.227202],
    [1528416000000, 7691.08, 7703.5, 7531, 7603.44, 23396.804671],
    [1528502400000, 7603.44, 7683.98, 7450, 7491.73, 19339.885176],
    [1528588800000, 7491.73, 7491.73, 6622.81, 6764.99, 52342.020032],
    [1528675200000, 6765, 6922, 6610, 6872, 34552.162303],
    [1528761600000, 6872, 6890.51, 6435, 6530, 36722.211191],
    [1528848000000, 6530, 6627.6, 6118.68, 6292.78, 46185.5181],
    [1528934400000, 6292.78, 6720, 6260, 6635.98, 44478.130837],
    [1529020800000, 6638.67, 6666.66, 6362.31, 6388.9, 30018.329905],
    [1529107200000, 6380.01, 6560, 6320.86, 6483.98, 22277.241147],
    [1529193600000, 6482.5, 6589.03, 6422, 6449.61, 19847.247688],
    [1529280000000, 6444.06, 6794.38, 6380, 6712.46, 31821.434995],
    [1529366400000, 6711.39, 6841.74, 6653, 6741.21, 24311.421143],
    [1529452800000, 6740, 6817.23, 6551.81, 6761.51, 26359.752452],
    [1529539200000, 6763.21, 6795, 6672.57, 6718.84, 25428.854048],
    [1529625600000, 6717.69, 6733.97, 5918.94, 6045, 52157.370833],
    [1529712000000, 6045.92, 6260, 6008.48, 6149.98, 26622.788589],
    [1529798400000, 6149.98, 6259.8, 5750, 6136.97, 47445.998955],
    [1529884800000, 6137.95, 6350, 6061.97, 6252, 39164.515306],
    [1529971200000, 6252, 6272.54, 6035, 6070.78, 19377.240484],
    [1530057600000, 6065.89, 6190.43, 5971, 6133.73, 19225.671098],
    [1530144000000, 6134.73, 6173.01, 5827, 5853.98, 30585.266026],
    [1530230400000, 5851.01, 6300, 5780, 6197.92, 33911.287278],
    [1530316800000, 6197.92, 6528.99, 6186.03, 6390.07, 37919.61284],
    [1530403200000, 6391.08, 6441.06, 6251, 6356.81, 27562.965974],
    [1530489600000, 6360.82, 6685, 6271.62, 6615.29, 36230.452264],
    [1530576000000, 6615.29, 6679.35, 6463.01, 6513.86, 38657.781691],
    [1530662400000, 6511.01, 6784.92, 6441.11, 6586.98, 23571.892777],
    [1530748800000, 6585.53, 6712, 6453.33, 6529.2, 35071.972898],
    [1530835200000, 6529.2, 6648.54, 6425, 6609.78, 29397.094748],
    [1530921600000, 6609.79, 6818.16, 6508.88, 6756.98, 23973.876886],
    [1531008000000, 6753.48, 6780, 6667.44, 6712.1, 24622.947794],
    [1531094400000, 6712.1, 6802.06, 6612.24, 6662.12, 26732.40655],
    [1531180800000, 6662.78, 6681, 6263, 6296.91, 38560.672702],
    [1531267200000, 6296.91, 6406, 6278.99, 6378.07, 28715.498487],
    [1531353600000, 6378.07, 6380.28, 6070, 6250.57, 31306.663348],
    [1531440000000, 6251.4, 6350, 6110, 6214.57, 26375.325286],
    [1531526400000, 6214.57, 6335, 6178, 6251.99, 17783.071999],
    [1531612800000, 6250.9, 6395, 6225.4, 6353.01, 22979.211508],
    [1531699200000, 6354.15, 6747.3, 6330.4, 6723.35, 36204.87708],
    [1531785600000, 6723.33, 7468.99, 6652.04, 7317.44, 52105.423459],
    [1531872000000, 7317.44, 7588.08, 7225.38, 7381.9, 59487.64345],
    [1531958400000, 7381.88, 7576.28, 7270, 7466.21, 41218.256437],
    [1532044800000, 7468.86, 7700, 7273, 7337.53, 46140.313447],
    [1532131200000, 7337.47, 7458.47, 7211, 7398.78, 28886.490291],
    [1532217600000, 7399.25, 7582.4, 7335.5, 7394.79, 30270.21844],
    [1532304000000, 7394.78, 7833, 7375, 7721.01, 41646.346671],
    [1532390400000, 7721.65, 8486, 7696, 8397.24, 60121.163749],
    [1532476800000, 8397.24, 8491.77, 8050, 8175.64, 48257.649124],
    [1532563200000, 8175.63, 8315.69, 7850.06, 7920, 43223.481682],
    [1532649600000, 7920, 8285, 7805, 8188.57, 43671.005891],
    [1532736000000, 8188.57, 8246.54, 8067, 8225.04, 26215.173839],
    [1532822400000, 8225.04, 8294.51, 8115, 8211, 25531.226185],
    [1532908800000, 8210.99, 8273, 7866, 8173.92, 39692.416542],
    [1532995200000, 8171.4, 8180, 7633, 7730.93, 48296.915587],
    [1533081600000, 7735.67, 7750, 7430, 7604.58, 42582.312932],
    [1533168000000, 7600.08, 7709.46, 7455.72, 7525.71, 37665.696684],
    [1533254400000, 7525.71, 7540, 7282.44, 7418.78, 44669.486047],
    [1533340800000, 7412.27, 7494.81, 6926, 7009.84, 36288.42601],
    [1533427200000, 7009.84, 7089.87, 6882.29, 7024.19, 32894.849782],
    [1533513600000, 7024.19, 7160, 6821, 6934.82, 32760.191643],
    [1533600000000, 6935, 7150.46, 6670, 6720.06, 45438.473501],
    [1533686400000, 6720.63, 6721.54, 6123, 6285, 59550.536319],
    [1533772800000, 6283.27, 6622.81, 6178.6, 6529.79, 51941.185111],
    [1533859200000, 6529.79, 6575.88, 6026.39, 6144.01, 59034.974902],
    [1533945600000, 6148.13, 6488, 5971, 6232.35, 47133.418555],
    [1534032000000, 6222.55, 6472.3, 6130, 6308.33, 38567.770712],
    [1534118400000, 6308.56, 6545, 6145.04, 6277.18, 48144.763934]
  ],
  "time": [1521244800000, 1521331200000, 1521417600000, 1521504000000, 1521590400000, 1521676800000, 1521763200000, 1521849600000, 1521936000000, 1522022400000, 1522108800000, 1522195200000, 1522281600000, 1522368000000, 1522454400000, 1522540800000, 1522627200000, 1522713600000, 1522800000000, 1522886400000, 1522972800000, 1523059200000, 1523145600000, 1523232000000, 1523318400000, 1523404800000, 1523491200000, 1523577600000, 1523664000000, 1523750400000, 1523836800000, 1523923200000, 1524009600000, 1524096000000, 1524182400000, 1524268800000, 1524355200000, 1524441600000, 1524528000000, 1524614400000, 1524700800000, 1524787200000, 1524873600000, 1524960000000, 1525046400000, 1525132800000, 1525219200000, 1525305600000, 1525392000000, 1525478400000, 1525564800000, 1525651200000, 1525737600000, 1525824000000, 1525910400000, 1525996800000, 1526083200000, 1526169600000, 1526256000000, 1526342400000, 1526428800000, 1526515200000, 1526601600000, 1526688000000, 1526774400000, 1526860800000, 1526947200000, 1527033600000, 1527120000000, 1527206400000, 1527292800000, 1527379200000, 1527465600000, 1527552000000, 1527638400000, 1527724800000, 1527811200000, 1527897600000, 1527984000000, 1528070400000, 1528156800000, 1528243200000, 1528329600000, 1528416000000, 1528502400000, 1528588800000, 1528675200000, 1528761600000, 1528848000000, 1528934400000, 1529020800000, 1529107200000, 1529193600000, 1529280000000, 1529366400000, 1529452800000, 1529539200000, 1529625600000, 1529712000000, 1529798400000, 1529884800000, 1529971200000, 1530057600000, 1530144000000, 1530230400000, 1530316800000, 1530403200000, 1530489600000, 1530576000000, 1530662400000, 1530748800000, 1530835200000, 1530921600000, 1531008000000, 1531094400000, 1531180800000, 1531267200000, 1531353600000, 1531440000000, 1531526400000, 1531612800000, 1531699200000, 1531785600000, 1531872000000, 1531958400000, 1532044800000, 1532131200000, 1532217600000, 1532304000000, 1532390400000, 1532476800000, 1532563200000, 1532649600000, 1532736000000, 1532822400000, 1532908800000, 1532995200000, 1533081600000, 1533168000000, 1533254400000, 1533340800000, 1533427200000, 1533513600000, 1533600000000, 1533686400000, 1533772800000, 1533859200000, 1533945600000, 1534032000000, 1534118400000],
  "close": [7824.8, 8189.99, 8600, 8909.98, 8885, 8722.9, 8898.03, 8546.86, 8470.15, 8134.23, 7795.51, 7949.3, 7090.14, 6840.23, 6923.91, 6813.01, 7056, 7405.21, 6796.1, 6770.76, 6601.39, 6895.8, 7018, 6782.72, 6843.9, 6953.79, 7923, 7877.41, 7999.01, 8355, 8064.92, 7885.02, 8173, 8278, 8856.98, 8915.31, 8787.02, 8934.01, 9619.99, 8869.99, 9266, 8915.35, 9348, 9419, 9246.01, 9071.48, 9247.84, 9750, 9713.99, 9864, 9659.01, 9365, 9187.56, 9310, 9002.2, 8400, 8465.94, 8679.71, 8663.34, 8462, 8330, 8041.46, 8239.81, 8233.49, 8526.98, 8381.24, 7977.11, 7501.95, 7575.01, 7457, 7333.96, 7338.99, 7099, 7461.29, 7375.96, 7485.01, 7521.01, 7640.03, 7714.26, 7487, 7625, 7658.84, 7691.08, 7603.44, 7491.73, 6764.99, 6872, 6530, 6292.78, 6635.98, 6388.9, 6483.98, 6449.61, 6712.46, 6741.21, 6761.51, 6718.84, 6045, 6149.98, 6136.97, 6252, 6070.78, 6133.73, 5853.98, 6197.92, 6390.07, 6356.81, 6615.29, 6513.86, 6586.98, 6529.2, 6609.78, 6756.98, 6712.1, 6662.12, 6296.91, 6378.07, 6250.57, 6214.57, 6251.99, 6353.01, 6723.35, 7317.44, 7381.9, 7466.21, 7337.53, 7398.78, 7394.79, 7721.01, 8397.24, 8175.64, 7920, 8188.57, 8225.04, 8211, 8173.92, 7730.93, 7604.58, 7525.71, 7418.78, 7009.84, 7024.19, 6934.82, 6720.06, 6285, 6529.79, 6144.01, 6232.35, 6308.33, 6277.18],
  "high": [8348.62, 8317.4, 8705.23, 9050, 9177.01, 9100, 8909, 8999.95, 8669.85, 8514.89, 8215.94, 8109, 7975, 7292.43, 7223.36, 7049.98, 7125, 7520, 7427.52, 6902, 6850, 7070, 7109.13, 7185, 6890, 6990, 8012.23, 8233.39, 8186, 8429.54, 8419, 8173.7, 8236.43, 8296, 8930, 9035, 9020.67, 8985, 9731.01, 9759.82, 9307.48, 9395, 9427.48, 9570.51, 9458.64, 9248.99, 9268, 9844, 9830.04, 10020, 9970, 9689.67, 9475.7, 9390, 9395.12, 9016.8, 8646.88, 8763.36, 8879.99, 8859.99, 8488, 8464, 8273.21, 8390.8, 8609, 8595.31, 8400.18, 8031.9, 7730.73, 7649.55, 7620, 7400, 7437, 7540, 7569, 7699, 7608.55, 7697.33, 7786.69, 7760.52, 7679.49, 7699, 7765, 7703.5, 7683.98, 7491.73, 6922, 6890.51, 6627.6, 6720, 6666.66, 6560, 6589.03, 6794.38, 6841.74, 6817.23, 6795, 6733.97, 6260, 6259.8, 6350, 6272.54, 6190.43, 6173.01, 6300, 6528.99, 6441.06, 6685, 6679.35, 6784.92, 6712, 6648.54, 6818.16, 6780, 6802.06, 6681, 6406, 6380.28, 6350, 6335, 6395, 6747.3, 7468.99, 7588.08, 7576.28, 7700, 7458.47, 7582.4, 7833, 8486, 8491.77, 8315.69, 8285, 8246.54, 8294.51, 8273, 8180, 7750, 7709.46, 7540, 7494.81, 7089.87, 7160, 7150.46, 6721.54, 6622.81, 6575.88, 6488, 6472.3, 6545],
  "low": [7721.99, 7322, 8088.4, 8280, 8750.6, 8465.1, 8269, 8491, 8365.77, 7831, 7730, 7728, 6941.11, 6600.1, 6777, 6430, 6765, 7011.01, 6707, 6566.69, 6500, 6586.28, 6880, 6611, 6656, 6787, 6743.2, 7732, 7810, 7999.02, 7867, 7825.4, 7868, 8080, 8177.09, 8565, 8727.68, 8745, 8922, 8730, 8651.62, 8889, 8870, 9163.74, 9124.99, 8800.49, 8970.2, 9168.4, 9520.85, 9682, 9417.03, 9181, 9060.54, 8965, 8970, 8341, 8153, 8298, 8277, 8401.3, 8083.01, 7979, 7911.9, 8095.73, 8163.9, 8305, 7935.11, 7425, 7266.99, 7308.15, 7300, 7231.11, 7058.02, 7032.95, 7260.5, 7327.51, 7355.54, 7437, 7600, 7446.5, 7358, 7467.05, 7620, 7531, 7450, 6622.81, 6610, 6435, 6118.68, 6260, 6362.31, 6320.86, 6422, 6380, 6653, 6551.81, 6672.57, 5918.94, 6008.48, 5750, 6061.97, 6035, 5971, 5827, 5780, 6186.03, 6251, 6271.62, 6463.01, 6441.11, 6453.33, 6425, 6508.88, 6667.44, 6612.24, 6263, 6278.99, 6070, 6110, 6178, 6225.4, 6330.4, 6652.04, 7225.38, 7270, 7273, 7211, 7335.5, 7375, 7696, 8050, 7850.06, 7805, 8067, 8115, 7866, 7633, 7430, 7455.72, 7282.44, 6926, 6882.29, 6821, 6670, 6123, 6178.6, 6026.39, 5971, 6130, 6145.04],
  "open": [8260, 7824.01, 8189, 8595.01, 8909.96, 8884.82, 8720, 8898.04, 8531.25, 8470.14, 8134.22, 7795.51, 7949.3, 7090.16, 6840.24, 6922, 6813.01, 7063.97, 7405.21, 6796.1, 6770, 6601.39, 6895.81, 7011.04, 6781.55, 6839.56, 6953.78, 7922.99, 7877.48, 8004, 8355.07, 8064.92, 7890.96, 8173.99, 8273.84, 8852.12, 8915.31, 8785.7, 8934, 9618.96, 8869.99, 9267.03, 8915.35, 9348, 9417.04, 9246.01, 9071.48, 9247.81, 9750, 9714, 9863.99, 9661.02, 9365, 9178, 9310, 9002.21, 8405.94, 8475.44, 8679.71, 8663.37, 8462, 8330, 8038.82, 8238.01, 8233.49, 8526.97, 8386.89, 7977.12, 7501.95, 7578.99, 7456.99, 7334, 7338.99, 7099, 7467.98, 7382.07, 7485.01, 7521.01, 7636.81, 7714.26, 7487, 7626.64, 7658.79, 7691.08, 7603.44, 7491.73, 6765, 6872, 6530, 6292.78, 6638.67, 6380.01, 6482.5, 6444.06, 6711.39, 6740, 6763.21, 6717.69, 6045.92, 6149.98, 6137.95, 6252, 6065.89, 6134.73, 5851.01, 6197.92, 6391.08, 6360.82, 6615.29, 6511.01, 6585.53, 6529.2, 6609.79, 6753.48, 6712.1, 6662.78, 6296.91, 6378.07, 6251.4, 6214.57, 6250.9, 6354.15, 6723.33, 7317.44, 7381.88, 7468.86, 7337.47, 7399.25, 7394.78, 7721.65, 8397.24, 8175.63, 7920, 8188.57, 8225.04, 8210.99, 8171.4, 7735.67, 7600.08, 7525.71, 7412.27, 7009.84, 7024.19, 6935, 6720.63, 6283.27, 6529.79, 6148.13, 6222.55, 6308.56]
};
var ta = new TA(test.ohlcv);
var tex = ta.bb(14, 2);
console.log(test.open.length);
var rsi = ta.rsi(6);
console.log(tex);
</script>
</body>
</html>